package com.li.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "sys_employee")
public class Employee {
    /**
     * 主键id
     */
    @TableId(value = "id")
    private String id;

    /**
     * 用户名
     */
    @TableField(value = "username")
    private String username;

    /**
     * 头像
     */
    @TableField(value = "avatar")
    private String avatar;

    /**
     * 昵称
     */
    @TableField(value = "nickname")
    private String nickname;

    /**
     * 密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 邮箱
     */
    @TableField(value = "email")
    private String email;

    /**
     * 性别
     */
    @TableField(value = "sex")
    private String sex;

    /**
     * 电话
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 身份证号
     */
    @TableField(value = "id_number")
    private String idNumber;

    /**
     * 出生日期
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @TableField(value = "birth")
    private Date birth;

    /**
     * 部门id
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @TableField(value = "dept_id")
    private Integer deptId;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd hh:mm:ss")
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 状态标记
     */
    @TableField(value = "del_flag")
    private Integer delFlag;

    @TableField(exist = false)
    private String deptName;

    @TableField(exist = false)
    private Integer roleIds[];

    @TableField(exist = false)
    private Integer deptIdsInt[];

}